package Exercise2.exercise2;
import java.util.*;
public class Plus {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		System.out.println("请输入三位数的整数");
		int x=in.nextInt();
		int sum=0;
		int a=x/100;
		int b=(x/10)%10;
		int c=x%10;
		sum=a+b+c;
		System.out.println("这个数的各个部分之和为："+sum);
		}
}
